package com.wangwq.myspringredis.annotation;

import java.lang.annotation.*;

@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface RedisCacheEvict {

    /**
     * 缓存名称
     * @return
     */
    String cacheName();

    /**
     * 缓存key
     * @return
     */
    String key();
}
